package io;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class BOSDemo {
    public static void main(String[] args) throws IOException {
        FileOutputStream fis = new FileOutputStream("./bos.txt");
        BufferedOutputStream bos = new BufferedOutputStream(fis);
        String line = "我不是一定要_徐佳莹";
        byte[] data = line.getBytes(StandardCharsets.UTF_8);
        bos.write(data);
        System.out.println("ok");
        bos.close();
    }
}
